Building the Plugin

From RidgeRun Developer Wiki

Follow Us On Twitter LinkedIn Email Share this page









Native Build

The following steps should be executed natively on your target hardware, for instance, if you are using a Jetson or an RB5, you need to run everything on that board. We assume that your board has Ubuntu installed.

Step 1: Install the Dependencies

Make sure that you install GstMoQ dependencies following our Dependencies section.

Step 2: Get the Source Code

Once you purchase GstMoQ, RidgeRun will provide source code access through a private GitLab repository. You need this access to build GstMoQ in your system and add it to your GStreamer plug-ins catalog. You will receive a repository URL that you can use to clone the source code using the following command:

git clone ${REPOSITORY_URL_PROVIDED_BY_RIDGERUN}

Where ${REPOSITORY_URL_PROVIDED_BY_RIDGERUN} is the URL provided by RidgeRun after the purchase.

Step 3: Define the PREFIX path

Define the PREFIX environment variable. This variable will define the path where the GstMoQ libraries will be installed.

export PREFIX=$HOME/.local

Note: if you set PREFIX to install on system level, you will need to install cargo and rust at system level to, using sudo

Step 4: Build and Install GstMoQ

Once PREFIX environment variable according to your platform is defined you have two options to build and install GstMoQ. Use the correct option according to your needs:

#1 Install GstMoQ without web support
cargo cinstall --prefix="$PREFIX"
#2 Install GstMoQ fully with web support
cargo cinstall --prefix="$PREFIX" --features web

#Export Gstreamer plugin path
export GST_PLUGIN_PATH="$PREFIX/lib/x86_64-linux-gnu/gstreamer-1.0:${GST_PLUGIN_PATH}"

#Check installation:
gst-inspect-1.0 rrmoq